package com.yunsom.testdemo.design.adapter;

/**
 * @author Xbao
 * @description
 * 适配器模式（Adapter Pattern）是作为两个不兼容的接口之间的桥梁。
 * 这种类型的设计模式属于结构型模式，它结合了两个独立接口的功能。
 * @date 2022/6/20 14:05
 */
public class AdapterTest {

  public static void main(String[] args) {
    AudioPlayer audioPlayer = new AudioPlayer();

    audioPlayer.play("mp3", "Beyond the world");
    audioPlayer.play("mp4", "Beast Wars");
    audioPlayer.play("avi", "Human & Nature");
    audioPlayer.play("rmvb", "Transformers");
  }
}
